<script type="text/javascript" src="functions/js/usersVoice.js"></script>
<a href="#"><img id="topArrow" src="img/topArrow.png" style="border:none;display:none;position:fixed;right:10px;top:10px;width:50px;" /></a>	
<a href="#bottom"><img id="bottomArrow" src="img/bottomArrow.png" style="border:none;display:none;position:fixed;right:10px;bottom:10px;width:50px;" /></a>	 
<div class="cuerpoContainer" id="cuerpoContainer">
	<?php
		include_once("frontend/carrousel.php");
	?>	
<link rel="stylesheet" href="lib/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
<script type="text/javascript" src="lib/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"></script>
<script src="lib/touch-punch-master/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="functions/js/acordeon.js"></script>
<script type="text/javascript" src="functions/js/sortable.js"></script>

    <div class="cuerpo">
            <div class="rightContainer">
                <?php
                    require 'vendor/autoload.php';
                    $sourceShortName = $_GET['diario'];
                    $newsManager = ApplicationContext::getServices('newsManager');
                    $news =  $newsManager->getLatestNewsFromDBForSource($sourceShortName);
                    $totalDeNews = count($news);
                    echo "<div class='sourceInfo'>";
                        echo"<div class='sourceLogoContainer'>";
                            echo "<img class='sourceLogo' src='img/logos/".$sourceShortName.".png' width='150' style='border:none;' />";	
                        echo "</div>";
                    echo "</div>";
                    $printer = ApplicationContext::getServices('printer');
                    $printer->printAllNewsFromSource($news, $sourceShortName);     
                ?>
            </div>
            	
            
           <div class="leftContainer">
               <?php 
			      include_once('frontend/dengoWords.php');
			   ?> 
               <div class="adsenseContainer" id="adsenseContainer">
                    <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-5938105089879889";
                    /* index_lateral_banner */
                    google_ad_slot = "9321916058";
                    google_ad_width = 120;
                    google_ad_height = 240;
                    //-->
                    </script>
                    <script type="text/javascript"
                    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                    </script>
                    <script>showAdsense()</script>
               </div>
   		</div>
        <div style="display: block; clear: both;"></div>
    	</div>
	<br /> 
</div>